<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: NicEntry Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00159.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">NicEntry Class Reference<div class="ingroups"><a class="el" href="a00517.html">connectionManager - channel and connection related classes</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="NicEntry" -->
<p><a class="el" href="a00159.html" title="NicEntry is used by ConnectionManager to store the necessary information for each nic...">NicEntry</a> is used by <a class="el" href="a00052.html" title="BaseConnectionManager implementation which only defines a specific max interference distance...">ConnectionManager</a> to store the necessary information for each nic.  
 <a href="a00159.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00250_source.html">NicEntry.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for NicEntry:</div>
<div class="dyncontent">
<div class="center"><img src="a00905.png" border="0" usemap="#NicEntry_inherit__map" alt="Inheritance graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for NicEntry:</div>
<div class="dyncontent">
<div class="center"><img src="a00906.png" border="0" usemap="#NicEntry_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a00907.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00160.html">NicEntryComparator</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Comparator class for NicEntry for usage in STL containers.  <a href="a00160.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9ce6e70f7231c299aac66e4cde88671"></a><!-- doxytag: member="NicEntry::t_nicid" ref="ae9ce6e70f7231c299aac66e4cde88671" args="" -->
typedef int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#ae9ce6e70f7231c299aac66e4cde88671">t_nicid</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Type for NIC identifier. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a23992af0bc9cf72b7e98e7be48ef86fb"></a><!-- doxytag: member="NicEntry::t_nicid_cref" ref="a23992af0bc9cf72b7e98e7be48ef86fb" args="" -->
typedef <a class="el" href="a00159.html#ae9ce6e70f7231c299aac66e4cde88671">t_nicid</a>&#160;</td><td class="memItemRight" valign="bottom"><b>t_nicid_cref</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a209882de7781ff52db0ae559c1654e08"></a><!-- doxytag: member="NicEntry::GateList" ref="a209882de7781ff52db0ae559c1654e08" args="" -->
typedef std::map&lt; const <br class="typebreak"/>
<a class="el" href="a00159.html">NicEntry</a> *, cGate <br class="typebreak"/>
*, <a class="el" href="a00160.html">NicEntryComparator</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#a209882de7781ff52db0ae559c1654e08">GateList</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Type for map from <a class="el" href="a00159.html" title="NicEntry is used by ConnectionManager to store the necessary information for each nic...">NicEntry</a> pointer to a gate. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a59345a3d9d2a9c6b85ff968e87cf7552"></a><!-- doxytag: member="NicEntry::NicEntry" ref="a59345a3d9d2a9c6b85ff968e87cf7552" args="(bool debug)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#a59345a3d9d2a9c6b85ff968e87cf7552">NicEntry</a> (bool debug)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor, initializes all members. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8c54007b13436458db987accc5dab3f9"></a><!-- doxytag: member="NicEntry::NicEntry" ref="a8c54007b13436458db987accc5dab3f9" args="(const NicEntry &amp;o)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>NicEntry</b> (const <a class="el" href="a00159.html">NicEntry</a> &amp;o)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a14b6ab9495fb7b43112b826c20c903ba"></a><!-- doxytag: member="NicEntry::swap" ref="a14b6ab9495fb7b43112b826c20c903ba" args="(NicEntry &amp;s)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>swap</b> (<a class="el" href="a00159.html">NicEntry</a> &amp;s)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2cc95c1b527c1d329a8966f4033199cf"></a><!-- doxytag: member="NicEntry::operator=" ref="a2cc95c1b527c1d329a8966f4033199cf" args="(const NicEntry &amp;o)" -->
<a class="el" href="a00159.html">NicEntry</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="a00159.html">NicEntry</a> &amp;o)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afd3d4871304939e9dcbfda49b3ca4585"></a><!-- doxytag: member="NicEntry::~NicEntry" ref="afd3d4871304939e9dcbfda49b3ca4585" args="()" -->
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#afd3d4871304939e9dcbfda49b3ca4585">~NicEntry</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor -- needs to be there... <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a32a71bf1823d8ca0d51fd1cbb67072fe"></a><!-- doxytag: member="NicEntry::connectTo" ref="a32a71bf1823d8ca0d51fd1cbb67072fe" args="(NicEntry *)=0" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#a32a71bf1823d8ca0d51fd1cbb67072fe">connectTo</a> (<a class="el" href="a00159.html">NicEntry</a> *)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Connect two nics. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0cce4edbe3eb6036ded986482de3de48"></a><!-- doxytag: member="NicEntry::disconnectFrom" ref="a0cce4edbe3eb6036ded986482de3de48" args="(NicEntry *)=0" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#a0cce4edbe3eb6036ded986482de3de48">disconnectFrom</a> (<a class="el" href="a00159.html">NicEntry</a> *)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Disconnect two nics. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4d455ea8504c06c9288f8a474c85e65d"></a><!-- doxytag: member="NicEntry::getGateList" ref="a4d455ea8504c06c9288f8a474c85e65d" args="() const " -->
const <a class="el" href="a00159.html#a209882de7781ff52db0ae559c1654e08">GateList</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#a4d455ea8504c06c9288f8a474c85e65d">getGateList</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return the actual gateList <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a32f9544fbf045d921b0fb7f1c6f51f9a"></a><!-- doxytag: member="NicEntry::isConnected" ref="a32f9544fbf045d921b0fb7f1c6f51f9a" args="(const NicEntry *other)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#a32f9544fbf045d921b0fb7f1c6f51f9a">isConnected</a> (const <a class="el" href="a00159.html">NicEntry</a> *other)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if this nic is connected to the "other" nic. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const cGate *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#a9438df597dbc6f81c5c2407abb791f0b">getOutGateTo</a> (const <a class="el" href="a00159.html">NicEntry</a> *to) const </td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a35ef2f3ace25220bf226c52b444d1109"></a><!-- doxytag: member="NicEntry::nicId" ref="a35ef2f3ace25220bf226c52b444d1109" args="" -->
<a class="el" href="a00159.html#ae9ce6e70f7231c299aac66e4cde88671">t_nicid</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#a35ef2f3ace25220bf226c52b444d1109">nicId</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">module id of the nic for which information is stored <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af7819e950101d5062b713eb4c182e34f"></a><!-- doxytag: member="NicEntry::nicPtr" ref="af7819e950101d5062b713eb4c182e34f" args="" -->
cModule *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#af7819e950101d5062b713eb4c182e34f">nicPtr</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to the NIC module. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af474d9b383b959daecdecce577edcee9"></a><!-- doxytag: member="NicEntry::hostId" ref="af474d9b383b959daecdecce577edcee9" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#af474d9b383b959daecdecce577edcee9">hostId</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Module id of the host module this nic belongs to. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2c78b2c598d5fa3d44080f682adb8d83"></a><!-- doxytag: member="NicEntry::pos" ref="a2c78b2c598d5fa3d44080f682adb8d83" args="" -->
<a class="el" href="a00065.html">Coord</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#a2c78b2c598d5fa3d44080f682adb8d83">pos</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Geographic location of the nic. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a684948749e06f0956cd1ef9fffdedd75"></a><!-- doxytag: member="NicEntry::chAccess" ref="a684948749e06f0956cd1ef9fffdedd75" args="" -->
<a class="el" href="a00053.html">ConnectionManagerAccess</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#a684948749e06f0956cd1ef9fffdedd75">chAccess</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Points to this nics <a class="el" href="a00053.html" title="Basic class for all physical layers, please don&#39;t touch!!">ConnectionManagerAccess</a> module. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af0a6ff3792dac4c0a956b1a16392cf18"></a><!-- doxytag: member="NicEntry::coreDebug" ref="af0a6ff3792dac4c0a956b1a16392cf18" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#af0a6ff3792dac4c0a956b1a16392cf18">coreDebug</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Debug output switch. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00159.html#a209882de7781ff52db0ae559c1654e08">GateList</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00159.html#a66b957327e66c042028f7b38e4bd0b46">outConns</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Outgoing connections of this nic.  <a href="#a66b957327e66c042028f7b38e4bd0b46"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="a00159.html" title="NicEntry is used by ConnectionManager to store the necessary information for each nic...">NicEntry</a> is used by <a class="el" href="a00052.html" title="BaseConnectionManager implementation which only defines a specific max interference distance...">ConnectionManager</a> to store the necessary information for each nic. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>Daniel Willkomm </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="a00052.html" title="BaseConnectionManager implementation which only defines a specific max interference distance...">ConnectionManager</a> </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a9438df597dbc6f81c5c2407abb791f0b"></a><!-- doxytag: member="NicEntry::getOutGateTo" ref="a9438df597dbc6f81c5c2407abb791f0b" args="(const NicEntry *to) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const cGate* NicEntry::getOutGateTo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00159.html">NicEntry</a> *&#160;</td>
          <td class="paramname"><em>to</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called by P2PPhyLayer. Needed to send a packet directly to a certain nic without other nodes 'hearing' it. This is only useful for physical layers that work with bit error probability like P2PPhyLayer.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">to</td><td>pointer to the <a class="el" href="a00159.html" title="NicEntry is used by ConnectionManager to store the necessary information for each nic...">NicEntry</a> to which the packet is about to be sent </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><pre class="fragment">                                                        {
      <span class="keywordflow">return</span> <a class="code" href="a00159.html#a66b957327e66c042028f7b38e4bd0b46" title="Outgoing connections of this nic.">outConns</a>.at(to);
    }
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a66b957327e66c042028f7b38e4bd0b46"></a><!-- doxytag: member="NicEntry::outConns" ref="a66b957327e66c042028f7b38e4bd0b46" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00159.html#a209882de7781ff52db0ae559c1654e08">GateList</a> <a class="el" href="a00159.html#a66b957327e66c042028f7b38e4bd0b46">NicEntry::outConns</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Outgoing connections of this nic. </p>
<p>This map stores all connection for this nic to other nics</p>
<p>The first entry is the module id of the nic the connection is going to and the second the gate to send the msg to </p>

<p>Referenced by <a class="el" href="a00162.html#a56d5f3eb121f931265299294660d70e9">NicEntryDirect::connectTo()</a>, <a class="el" href="a00161.html#af97ebc8c81c1f7d8094344d2f7fb6a17">NicEntryDebug::connectTo()</a>, <a class="el" href="a00162.html#a4629b3bf3dc1836590016164bd245149">NicEntryDirect::disconnectFrom()</a>, <a class="el" href="a00161.html#a837ccd605ce3df345fcf3f5787673fac">NicEntryDebug::disconnectFrom()</a>, <a class="el" href="a00161.html#a23514a51dfbdba46bf20b2f005a34214">NicEntryDebug::~NicEntryDebug()</a>, and <a class="el" href="a00162.html#a21eb6f7a68d1dc62b30934651b569ba6">NicEntryDirect::~NicEntryDirect()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Projects/MiXiM/extsrc/mixim/src/base/connectionManager/<a class="el" href="a00250_source.html">NicEntry.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00159.html">NicEntry</a>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:32 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
